<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/screen.css" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Team 2 - Leave Application</title>
</head>
<body>
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
		<h1 style="color: #fff; font-style: oblique;">NUS-ISS(LAMS)</h1>
	</div>
	<!-- end logo -->
	
	</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">	
		<div class="nav">
		<div class="table">
				<div class="nav-divider">&nbsp;</div>
		<label class="current" id="username"><i>${loggedEmployee.name}</i></label>
		<div class="nav-divider">&nbsp;</div>
		<a href="${pageContext.request.contextPath}/logout"><label class="current" id="logout">Logout</label></a>
				</div>
		<!-- end nav-right -->
</div></div>

		<!--  start nav -->
		<div class="nav">
		<div class="table">
		<ul class="select">
			<li><a href="${pageContext.request.contextPath}/employee/Leave-Form.html"><b>Leave Application</b></a></li>
			<li><a href="${pageContext.request.contextPath}/employee/Leavehistory-Appending.html"><b>View Leave History</b></a></li>
		</ul>		
				<div class="clear"></div>
		
		</div>
		<div class="clear"></div>
		</div>
		<!--  start nav -->

</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

 <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Reject Leave Application</h1>
	</div>
	<!-- end page-heading -->
		<a href="${pageContext.request.contextPath}/employee/Leavehistory-Appending.html">Pending Leave</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
		<a href="${pageContext.request.contextPath}/employee/Leavehistory-Approved.html">Approved Leave</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
		<a href="${pageContext.request.contextPath}/employee/Leavehistory-Reject.html">Rejected Leave</a>
		
	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="${pageContext.request.contextPath}/resources/images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="${pageContext.request.contextPath}/resources/images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content"> 
				<!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
					<tr>
						<td>Leave ID</td>
						<td>Leave Type</td>
		        		<td>Date Applied</td>
		        		<td>From Date</td>
		        		<td>To Date</td>
		        		<td>Leave Status</td>
		        		<td>Comment</td>
		        		<td></td>
					</tr>
					<c:forEach items="${empLeaveList}" var="empLeaveApps">
						<tr>	        		
			        		<td>${empLeaveApps.leaveId }</td>
			        		<td>${empLeaveApps.leaveType.leaveType }</td>
							<td>${empLeaveApps.applyDate }</td>
							<td>${empLeaveApps.fromDate }</td>			        		
			        		<td>${empLeaveApps.toDate }</td>
			        		<td>${empLeaveApps.status }</td>
			        		<td>${empLeaveApps.employeeComment }</td>
		        			<td>
			        		<a href="${pageContext.request.contextPath}/employee/viewDetailLeaveApp/${empLeaveApps.leaveId}.html" name="detail" id="detail">Detail</a>
			        		
		        			</td>
		        		</tr>
	        		</c:forEach>        	
				</table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
				
			<!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				<a href="" class="page-far-left"></a>
				<a href="" class="page-left"></a>
				<div id="page-info">Page <strong>1</strong> / 15</div>
				<a href="" class="page-right"></a>
				<a href="" class="page-far-right"></a>
			</td>
			<td>
			<select  class="styledselect_pages">
				<option value="">Number of rows</option>
				<option value="">1</option>
				<option value="">2</option>
				<option value="">3</option>
			</select>
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->
<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	ISS SA-37 TEAM 2 @  GILBRT @ KHIN LAI PHYO AUNG @ LIU CHANG @ MAHEEN @ NAN MAI NGIN @ NARESH SARAVANA </div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body>
</html>